Xbasic
a5_ai_prompt_with_image Function
Syntax
c a5_ai_prompt_with_image(c namedresource, c prompt,c imagefile)
Arguments
- namedresource
Named resource for specifying ai server to use, api key, model and settings.
- prompt
Prompt to pass to the AI endpoint.
- imagefile
File with reference image to pass to the AI endpoint.
Returns
- result
Text response from the endpoint, otherwise and error string with '#Error' prefix
Description
Request an AI response for a text prompt and reference image.
Example
? a5_ai_prompt_with_image("llava","describe the picture","c:\images\wolf.png")
= The image shows a wolf standing in a snowy landscape. The wolf is facing the camera and appears to be looking directly at it, with its mouth slightly open as if it might bark or growl. Its fur is a mix of gray and